package com.sinosoft.dsp.component.bpm.viewbean.transition;

import com.sinosoft.dsp.platform.components.IViewBean;
import com.sinosoft.dsp.platform.components.ViewListBean;

public class BpmTransitionEditViewBean extends ViewListBean implements
		IBpmTransitionEditViewBean {

	private static final long serialVersionUID = 5225026732555837918L;

	/**
	 * 获得参数
	 * 
	 * @param key
	 * @return
	 */
	@Override
	public Object getField(String key) {
		for (IViewBean vb : this.getAllView()) {
			IBpmTransitionPartEditViewBean part = (IBpmTransitionPartEditViewBean) vb;
			if (part.getFields().containsKey(key)) {
				return part.getFields().get(key);
			}
		}
		return null;
	}

}
